package demo.value;

/**
 *	Generated from IDL definition of valuetype "Node"
 *	@author orbas IDL compiler 
 */

public abstract class NodeHelper
{
	private static org.omg.CORBA.TypeCode type = null;
	public static void insert (org.omg.CORBA.Any a, demo.value.Node v)
	{
		a.insert_Value (v, v._type());
	}
	public static demo.value.Node extract (org.omg.CORBA.Any a)
	{
		return (demo.value.Node)a.extract_Value();
	}
	public static org.omg.CORBA.TypeCode type()
	{
		if (type == null)
			type = org.omg.CORBA.ORB.init().create_value_tc ("IDL:demo/value/Node:1.0", "Node", (short)0, null, new org.omg.CORBA.ValueMember[] {new org.omg.CORBA.ValueMember ("", "IDL:*primitive*:1.0", "Node", "1.0", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null, (short)1), new org.omg.CORBA.ValueMember ("", "IDL:demo/value/Node:1.0", "Node", "1.0", org.omg.CORBA.ORB.init().create_recursive_tc ("IDL:demo/value/Node:1.0"), null, (short)1)});
		return type;
	}
	public static String id()
	{
		return "IDL:demo/value/Node:1.0";
	}
	public static demo.value.Node read (org.omg.CORBA.portable.InputStream is)
	{
		return (demo.value.Node)((org.omg.CORBA_2_3.portable.InputStream)is).read_value ("IDL:demo/value/Node:1.0");
	}
	public static void write (org.omg.CORBA.portable.OutputStream os, demo.value.Node val)
	{
((org.omg.CORBA_2_3.portable.OutputStream)os).write_value (val, "IDL:demo/value/Node:1.0");
	}
}
